package com.hhy1001.fireplane;

import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.graphics.Rect;

public class Score {
	private Rect dst;
	private Paint aPaint;
	private int number;
	public Score(int number) {
		dst = new Rect();
		aPaint = new Paint();
		this.number = number;
	}
	
	public void draw(Canvas lockCanvas){
		aPaint.setStyle(Style.STROKE);
		aPaint.setColor(Color.WHITE);
		dst.set(10,10,140,40);
		lockCanvas.drawRect(dst, aPaint);
		aPaint.setColor(Color.WHITE);
		aPaint.setTextSize(24);
		lockCanvas.drawText("Score:"+number+"", 20, 35, aPaint);
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}
	
	
	
	
}
